package com.thb.pay.manage.comm.utils;

/**
 * @Description 管理平台参数
 * @Author lucky
 * @data 2019/7/28 21:43
 */
public class AdminConstants {

    public static String CACHE_ACCESS_TOKEN_KEY = "manage:access:token:%s";

    public static String CACHE_REFRESH_TOKEN_KEY = "manage:refresh:token:%s";

    public static String getCacheAccessTokenKey(String accessToken) {
        return String.format(CACHE_ACCESS_TOKEN_KEY, accessToken);
    }

    public static String getCacheRefreshTokenKey(String refreshToken) {
        return String.format(CACHE_REFRESH_TOKEN_KEY, refreshToken);
    }
}
